package com.ruoyi.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.domain.ProgressNodeMessage;
import com.ruoyi.system.mapper.ProgressNodeMessageMapper;
import com.ruoyi.system.service.INodeMessageService;
import java.util.List;

@Service
public class NodeMessageServiceImpl implements INodeMessageService {
    @Autowired
    private ProgressNodeMessageMapper nodeMessageMapper;

    @Override
    public int insertNodeMessage(ProgressNodeMessage message) {
        return nodeMessageMapper.insertNodeMessage(message);
    }

    @Override
    public List<ProgressNodeMessage> selectMessagesByNodeId(Long nodeId) {
        return nodeMessageMapper.selectMessagesByNodeId(nodeId);
    }

    @Override
    public List<ProgressNodeMessage> selectMessagesByDetailId(Long detailId) {
        return nodeMessageMapper.selectMessagesByDetailId(detailId);
    }
} 